package com.chenyanqing.sqlsession;

import com.chenyanqing.config.Configuration;
import com.chenyanqing.pojo.MapperStatement;

import java.sql.Connection;

public class DefaultSqlSessionFactory  implements  SqlSessionFactory {


    private Configuration configuration ;


    public DefaultSqlSessionFactory(Configuration configuration ){
        this.configuration = configuration;
    };


    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(this.configuration);
    }
}
